package paradigm.paradigmMethod;

import java.util.ArrayList;

public class test
{

    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
         list.toArray();

         Integer a = test(1);
         String b = test("String");

        System.out.println(a);
        System.out.println(b);

        String[] arr = {"w"};
        String[] res = test2(arr);
        System.out.println(res[0]);
    }

    public static <E> E test(E e){

        return e;

    }

    public static <E> E[] test2(E[] arr){

        return arr;

    }

}
